package com.itmk.web.goods_report.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itmk.web.goods_report.entity.GoodsReport;
import com.itmk.web.goods_report.entity.ReportVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author 山顶洞人郑某
 * @className GoodsReportMapper.java
 * @date 2023 12 11
 */
@Mapper
public interface GoodsReportMapper extends BaseMapper<GoodsReport> {

    IPage<ReportVo> getList(IPage<ReportVo> page);

    @Select("select report_id from max_id where  id = 1")
    Long maxId();
    @Update("update max_id set report_id = #{l} where id = 1")
    void updateMaxId(long l);
}
